<template>
    <h1>插槽基础知识3</h1>
    <slot :msg="childMessage"></slot>
    <slot name="header" :msg="childMessage"></slot>
</template>
<script>
export default {
    data(){
        return{
            childMessage:"子组件数据"
        }
    }
}
</script>
